xend: passthrough: also do_FLR when a device is assigned.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 6 Jan 2010 08:17:20 +0000 (08:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 6 Jan 2010 08:17:20 +0000 (08:17 +0000)
commit8c5fdc54a756be1ce22feba05045bd5a19516dcf
tree923191ebdb52a73a32573f410e49b9d78c2e8329
parent46a6b6e27e652d5e7a28384f329ad458f7828d84
xend: passthrough: also do_FLR when a device is assigned.

To workaround a race condition about guest hotplug, c/s
18338:7c10be016e4 disabled do_FLR when we create guest or 'xm
pci-attach' device into guest, so now we actually only do_FLR when a
guest is destroyed or 'xm pci-detach'.

By moving the FLR-related checking/do_FLR logic a little earlier, this
patch re-enables do_FLR in these 2 cases disabled by 18338.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/pciif.py